

<%--
 This page will only be seen if there are Exceptions thrown when trying to log in.
 Most error cases will be handled by the Faces context and will return the user
 to the login.jsp page with an appropriate error message.

 A major error, or a forced attempt to log in by manipulating the post data, will send the user here.

--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<f:view>
    <html>


    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>TestFire</title>
        <jsp:useBean id="nav" class="org.testfire.realm.control.NavBean"/>
        
        <link rel=stylesheet href="${nav.href_css_basic}" type="text/css">
        <script type="text/javascript" src="${nav.href_js_displayTools}"></script>
    </head>
    <body>


    <div id="masthead">
        <h1 id="siteName">TestFire</h1>
        <c:if test="${pageContext.request.userPrincipal.name != null}"><span
                style="float:right ">Logged In: ${pageContext.request.userPrincipal.name}</span></c:if>
        <div id="globalNav">
            <h:form>
                <a id="href_home" href="${nav.href_home}">Home</a> |
                <c:choose>
                    <c:when test="${pageContext.request.userPrincipal.name != null}">

                        <h:commandLink id="logout" action="nav_logout" actionListener="#{UserBean.userLogout}">
                            <h:outputText value="Log Out |"/>
                        </h:commandLink>

                    </c:when>
                    <c:otherwise>
                        <a id="href_account" href="${nav.href_account}">Log In</a> |
                    </c:otherwise>
                </c:choose>
            </h:form>
        </div>
    </div>
    <!-- end masthead -->
    <h2 id="pageName">Invalid Login Attempt </h2>
    


    </body>

    </html>
</f:view>